package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class WithClause {

    private int beginIndex;
    private int endIndex;
    private boolean recursive;
    private WithList withList;

    public WithClause(int beginIndex, boolean recursive, WithList withList) {
        this.beginIndex = beginIndex;
        this.endIndex = withList.get(withList.size() - 1).getEndIndex();
        this.recursive = recursive;
        this.withList = withList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isRecursive() {
        return recursive;
    }

    public WithList getWithList() {
        return withList;
    }

}
